using FluentNHibernate.Mapping;
using Munim.Fame.Core.DomainModels;

namespace Munim.Fame.DataAccess.NHibernate.Mapping
{
    public sealed class LanguageMap : ClassMap<Language>
    {
        public LanguageMap()
        {
            Id(l => l.Id);
            Map(l => l.Name);
            HasMany(l => l.Medias).ExtraLazyLoad();
        }
    }
}